export const getElementToPageTop = (el) => {//获取元素距离顶部距离
  if (el == null) {
    return
  }
  let _this = this
  if (el.parentElement) {
    return getElementToPageTop(el.parentElement) + el.offsetTop
  }
  return el.offsetTop
}
